#ifndef NETCONTROLELEVATORCMD_H
#define NETCONTROLELEVATORCMD_H

#include "Command/BaseCmd.h"
#include "Protocol/NetPointProtocol.h"
#include "Protocol/PointProtocol.h"
class NetControlElevatorCmd : public BaseCmd
{
    Q_OBJECT
public:

    enum{FunctionCode = NetPointProtocol::Elevatorauthorization};
//    enum{PointFunctionCode = PointProtocol::ControlPoint};
    Q_INVOKABLE explicit NetControlElevatorCmd(QObject *parent = 0);

    Package toPackage();
    void unPackage(Package package);

    quint16 address() const;
    void setAddress(const quint16 &address);

    quint16 value() const;
    void setValue(const quint16 &value);

private:
    quint16 m_address;
    quint16 m_value;

};

#endif // NETCONTROLELEVATORCMD_H
